﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master"
    Inherits="Customer_Product_List" CodeFile="Customer_Product_List.aspx.cs" %>
    <%@ Register Src="~/UserControl/GridPager.ascx" TagName="GridPager"  TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>客户分销列表</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <table id="wsd_inputtable">
             
        </table>
        <table id="wsd_listtable" width="100%">
            <tr>
                <td style="width: 100%">
                    <asp:GridView Width="100%" ID="gvChannelType" runat="server" AutoGenerateColumns="false"
                        EmptyDataText="<%$resources:language,lbl_Empty %>"  BorderWidth="0"
                        EmptyDataRowStyle-Font-Bold="true" EmptyDataRowStyle-HorizontalAlign="Center"
                        OnRowDataBound="Grid_RowDataBound" EnableEmptyContentRender="true" 
                        OnRowCommand="gvChannelType_RowCommand" AllowPaging="True" 
                        onpageindexchanging="gvChannelType_PageIndexChanging" PageSize="15" >
                        <HeaderStyle CssClass="titlist" />

<EmptyDataRowStyle HorizontalAlign="Center" Font-Bold="True"></EmptyDataRowStyle>
                        <Columns>
                            <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Customer_Product_List_Maintain.aspx?id={0}"
                                ControlStyle-Font-Underline="false" DataTextField="CODE" HeaderText="<%$resources:language,lbl_Code %>" >
<ControlStyle Font-Underline="False"></ControlStyle>
                            </asp:HyperLinkField>
                            <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Customer_Product_List_Maintain.aspx?id={0}"
                                ControlStyle-Font-Underline="false" DataTextField="Name" HeaderText="<%$resources:language,lbl_Description %>" >
<ControlStyle Font-Underline="False"></ControlStyle>
                            </asp:HyperLinkField>
                            <asp:BoundField Visible="false" DataField="ID" />
                           
                             <asp:TemplateField HeaderText="<%$resources:language,lbl_Active %>" ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="center">
                                <ItemTemplate>
                                    <b><%# (bool)Eval("ACTIVE") ? "<font size='3' color='green'>√</font>" : "<font size='3' color='red'>×</font>"%></b>
                                </ItemTemplate>

<HeaderStyle HorizontalAlign="Center"></HeaderStyle>

<ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:TemplateField> 
                            <asp:TemplateField ItemStyle-Width="25%"  HeaderText="编辑产品">
                                <ItemTemplate>
                                    <asp:LinkButton Text="<%$resources:language,lbl_EditProduct %>" runat="server"   CommandName="AddProduct"   CssClass="btn3_mouseover"   CommandArgument='<%# Eval("ID").ToString()%>' />
                                </ItemTemplate>

<ItemStyle Width="25%"></ItemStyle>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="25%" HeaderText="分配客户">
                                <ItemTemplate>
                                    <asp:LinkButton Text="<%$resources:language,lbl_DispatchCustomer %>" runat="server"  CssClass="btn3_mouseover" CommandName="AddCustomer"
                                        CommandArgument='<%# Eval("ID").ToString()%>' />
                                </ItemTemplate>

<ItemStyle Width="25%"></ItemStyle>
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle CssClass="evenline"   />
                        <AlternatingRowStyle CssClass="oddline" />
                        <PagerSettings  Visible="false" />
                    </asp:GridView>
                      <uc1:GridPager ID="GridPager1" runat="server" Visible="false"  />
                </td>
            </tr>
        </table>
        <br />
        <table id="wsd_inputtable">
            <tr>
                <td width="100%" class="tabletitle" >
                     <asp:Literal ID="Literal40" runat="server" Text="<%$resources:language,lbl_Operation_Area %>"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td class="buttonarea">
                    <asp:Button ID="btnNew" runat="server" class="wsd_button2" Text="新 增" OnClick="btnNew_Click" />
                </td>
            </tr>
        </table>
       
    </div>
</asp:Content>
